package com.bbzn.device.client.service.impl;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

import com.bbzn.device.client.dao.leader.LeaderMapper;
import com.bbzn.device.client.dataobject.Leader;
import com.bbzn.device.client.service.LeaderService;

@Service
public class LeaderServiceImpl implements LeaderService {

    @Resource
    private LeaderMapper leaderMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return leaderMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Leader record) {
        return leaderMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(Leader record) {
        return leaderMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(Leader record) {
        return leaderMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(Leader record) {
        return leaderMapper.insertSelective(record);
    }

    @Override
    public int selectCountBySelective(Leader record) {
        return leaderMapper.selectCountBySelective(record);
    }

    @Override
    public int selectCountPrimaryKey(Long id) {
        return leaderMapper.selectCountPrimaryKey(id);
    }

    @Override
    public Leader selectByPrimaryKey(Long id) {
        return leaderMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Leader record) {
        return leaderMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Leader record) {
        return leaderMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Leader> findByAll(Leader leader) {
        return leaderMapper.findByAll(leader);
    }

    @Override
    public int updateBatch(List<Leader> list) {
        return leaderMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<Leader> list) {
        return leaderMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<Leader> list) {
        return leaderMapper.batchInsert(list);
    }

}
